how to solve circuit problems physics